Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 38bb2eb628
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| }; | ||
| /** 관리자 계정 단건 조회 */ | ||
| get: operations['getUserById']; | ||
| put?: never; |
There was a problem hiding this comment.
Remove conflicting
put type in admin user detail path
The new OpenAPI path type declares put twice for /api/admin/user/{id} (put?: never here and put: operations['putUser'] later), which makes the declaration internally contradictory. This can break strict type-checking/tooling (for example when skipLibCheck is off) and makes method inference for this endpoint unreliable; keep only the concrete put operation declaration.
Useful? React with 👍 / 👎.
Summary
관리자 계정 관리 화면과 관련 API controller를
apps/admin에 추가했습니다.관리자 계정 목록 조회, 생성, 수정, 삭제 흐름을 admin UI에서 처리할 수 있도록 연결했습니다.
메뉴 항목이 늘어나면서 사이드바 하단이 잘리던 문제도 함께 수정해, 메뉴 영역만 스크롤되도록 정리했습니다.
MAT-429 권한분리 FE 대응도 같은 PR에 포함했습니다.
로그인/토큰 갱신 응답의 관리자 권한 정보를 세션으로 저장하고, GNB 노출과 직접 URL 접근을 동일한 권한 매핑으로 제어합니다.
MAT-617의 관리자 계정 관리 화면은 유지하되
/setting/admins로 이동했고, 기존/admin-user는 새 설정 경로로 redirect합니다.Linear
Changes
/setting/admins로 구성하고 생성/수정/삭제 UI 구현/admin-user접근 시/setting/admins로 redirectmenu,rolecontroller 추가adminType,roleId,roleName,accessibleMenus를 admin session으로 저장accessibleMenus기반으로 제어/setting/roles역할 관리 화면 추가슈퍼 관리자선택 시roleId: null전송PATCH /api/admin/user/{id}/role호출Testing
pnpm --filter admin typecheckpnpm --filter admin lintpnpm --filter @repo/pointer-editor-v2 buildpnpm --filter admin buildRisk / Impact
apps/admin의 관리자 계정 관리 화면, GNB 메뉴, auth session 저장/삭제, route guard, user/menu/role API wrapper/api/admin/user,/api/admin/user/{id},/api/admin/user/{id}/role스펙이 현재 schema와 동일해야 함adminType,roleId,roleName,accessibleMenus가 포함되어야 함name은 seed 영문 코드와 일치해야 함Screenshots / Video